<template>
  <header>
    <div class="return">
      <slot name="left"></slot>
    </div>
    <div class="title">
      <slot name="center"></slot>
    </div>
    <div class="logo">
      <slot name="right"></slot>
    </div>
  </header>
</template>
<script>
// 1.定义组件
export default {
  name: "compHeader",
};
</script>
<style lang="scss" scoped>
header {
  z-index: 1000;
  width: 100%;
  height: 60px;
  background: linear-gradient(#fa6ba1, #fccde7);
  align-items: center;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative;
  .return {
    position: absolute;
    left: 10px;
    top: 10px;
  }
  .title {
    width: 100%;
    height: 80px;
    text-align: center;
    line-height: 60px;
    span {
      font-size: 32px;
      font-family: flymusic;
      color: rgb(255, 255, 255);
    }
  }
  .logo {
    position: absolute;
    right: 10px;
    top: 0px;
    img {
      height: 40px;
      // margin-top: 10px;
      vertical-align: middle;
    }
  }
}
</style>